﻿#pragma once

class BackGDC
{
public:
	HDC		m_hdcBK;	//DC句柄
	int		m_iWidth;
	int		m_iHeight;
	bool	m_bIsDraw;	//自句柄创建以来，是否在上面画过图
	HBITMAP m_hBitmap;
//----------------
	BackGDC();		  //用默认大小（800*600）创建DC
	BackGDC(int, int);//创建指定大小的DC
	BackGDC(HWND hWnd, int _width, int _height, HBITMAP hBitmap);
	~BackGDC();
public:
	void DrawItem(void (*Draw)(HDC hdc));//绘图
protected:

	HBITMAP m_hOldBmp;
};